home *** CD-ROM | disk | FTP | other *** search
- Path: nuscc.nus.sg!eng30403
- From: eng30403@leonis.nus.sg (Tey Chee Meng)
- Newsgroups: comp.lang.c
- Subject: Strange looking cast in lvalue
- Date: 6 Apr 1996 04:34:34 GMT
- Organization: NUS
- Message-ID: <4k4s8q$3sv@nuscc.nus.sg>
- NNTP-Posting-Host: eng30403%@leonis.nus.sg
- X-Newsreader: TIN [version 1.2 PL2]
-
- (FARPROC)fnSnmpStrToOid=GetProcAddress(hinstWinSNMP,"_SNMPSTRTOOID");
-
- Can anyone explain the effect, if any, of that (FARPROC) cast on the
- LHS of the expression ? fnSnmpStrToOid is a pointer to a function.
- GetProcAddress returns a pointer to a function as well but is of
- different type from fnSnmpStrToOid. Arent cast always used on the RHS of
- assignment expressions ?
-
- I found this code in the windows SDK help, but thought it is more
- a 'C' question than a windows question. Thanks.
-
- --
-
- Tey Chee Meng
-
- " Not to take extremes, the middle way is the best "
-
-